﻿using System;
using HtmlAgilityPack;
using System.Net;
using System.Text;
using System.IO;
using System.Collections.Generic;

namespace RPG
{
    class Program
    {
        static void Main(string[] args)
        {
            // var crawler = new HouseCrawler();
            // crawler.CrawAllHouse();

            // var ak = "ZGGaj81VlCkG17BxgWH7BPcQpSagndOe";
            // var sk = "9F7sAlEVRun4WruEi1YRMcLbYtEdMTwU";
            // var shortUrl = "/direction/v2/transit";
            // var queryDic = new Dictionary<string, string> {
            //         { "origin","40.056878,116.30815"},
            //         { "destination","31.222965,121.505821"},
            //         { "ak",ak},
            //     };
            // var str = AKSNCaculater.GetRouteResponse(ak, sk, shortUrl, queryDic);
            // Console.WriteLine(str);

            // var ak = "ZGGaj81VlCkG17BxgWH7BPcQpSagndOe";
            // var shortUrl = "/direction/v2/transit";
            // var queryDic = new Dictionary<string, string> {
            //         { "origin","40.056878,116.30815"},
            //         { "destination","31.222965,121.505821"},
            //         { "ak",ak},
            //     };
            // var str = AKSNCaculater.GetRouteResponse(ak, shortUrl, queryDic);
            // Console.WriteLine(str);

            // var ak = "Uay8sG6F2ZF3wI3TS6DHCf4Ppx1Uqs0Q";
            // var shortUrl = "/direction/v2/transit";
            // var queryDic = new Dictionary<string, string> {
            //         { "origin","40.056878,116.30815"},
            //         { "destination","31.222965,121.505821"},
            //         { "ak",ak},
            //     };
            // var str = AKSNCaculater.GetRouteResponse(ak, shortUrl, queryDic);
            // Console.WriteLine(str);

            // var ak = "ZGGaj81VlCkG17BxgWH7BPcQpSagndOe";
            // var sk = "9F7sAlEVRun4WruEi1YRMcLbYtEdMTwU";
            // // var url = "http://api.map.baidu.com/place/v2/search?query=ATM机&tag=银行&region=北京&output=json&ak";
            // var shortUrl = "/place/v2/search";
            // var queryDic = new Dictionary<string, string>
            // {
            //     {"query","之江家园"},
            //     {"region","179"},
            //     {"output","json"},
            //     {"ak",ak},
            // };
            // var str = AKSNCaculater.GetRouteResponse(ak, sk, shortUrl, queryDic);
            // Console.WriteLine(str);
        }


    }
}
